package xin.marcher.module.label.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xin.marcher.module.label.domain.dto.FrontCategoryLabelRelationResultDTO;
import xin.marcher.module.label.domain.request.FrontCategoryLabelRelationRequest;
import xin.marcher.module.label.repository.LabelRelationRepository;
import xin.marcher.module.label.repository.LabelRepository;
import xin.marcher.module.label.service.FrontCategoryLabelRelationService;

/**
 *
 */
@Service
public class FrontCategoryLabelRelationServiceImpl implements FrontCategoryLabelRelationService {

    @Autowired
    private LabelRelationRepository labelRelationRepository;

    @Autowired
    private LabelRepository labelRepository;

    @Override
    public FrontCategoryLabelRelationResultDTO saveFrontCategoryLabelRelation(FrontCategoryLabelRelationRequest request) {
        return labelRelationRepository.saveFrontCategoryLabelRelation(request);
    }
}
